package com.flying.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "provider")
//@RequestMapping(value = "/",headers = {"app=test-app","token=${token}"}) 后面有时间再研究这种方式
public interface ProviderClient {

    @RequestMapping(method = RequestMethod.GET, value = "/list")
    String list();
}
